//
//  UserBankAccountController.m
//  FinancialProduct
//  受益账户
//  Created by Stella on 2017/9/4.
//  Copyright © 2017年 maq. All rights reserved.
//

#import "UserBankAccountController.h"

@interface UserBankAccountController ()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UIImageView *logoImage;
@property (weak, nonatomic) IBOutlet UILabel *account;

@end

@implementation UserBankAccountController

- (void)viewDidLoad {
    [super viewDidLoad];
    //NSLog(@"self.infoDic==%@",self.infoDic);
    if ([self.infoDic[@"Bank"] length]==0) {
        self.nameLabel.text=@"";
        self.logoImage.image=[UIImage imageNamed:@""];
        self.account.text=[NSString stringWithFormat:@"**** **** **** %@",@"****"];
        return;
    }
    self.nameLabel.text=self.infoDic[@"Bank"];
    self.logoImage.image=[UIImage imageNamed:[NSString stringWithFormat:@"%@.png",self.infoDic[@"Picture"]]];
    self.account.text=[NSString stringWithFormat:@"**** **** **** %@",self.infoDic[@"AccountNo"]];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
